home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
2207
/
2207.xpi
/
components
/
coolpreviews.js
Wrap
Text File
|
2010-01-28
|
1KB
|
42 lines
var nsISupports=Components.interfaces.nsISupports;
var COOLPREVIEWS_CLASS_ID=Components.ID("{2d7da437-2912-45be-88f7-0107ccdfddb1}");
var COOLPREVIEWS_CLASS_NAME="CoolPreviews";
var COOLPREVIEWS_CONTRACT_ID="@cooliris.com/CoolPreviews;1";
function CoolPreviewsService(){
this.uninstallPageDisplayed=false;
this.wrappedJSObject=this;
}
CoolPreviewsService.prototype={QueryInterface:function(_1){
if(!_1.equals(Components.interfaces.nsISupports)){
throw Components.results.NS_ERROR_NO_INTERFACE;
}
return this;
}};
var CoolPreviewsServiceFactory={createInstance:function(_2,_3){
if(_2!=null){
throw Components.results.NS_ERROR_NO_AGGREGATION;
}
return (new CoolPreviewsService()).QueryInterface(_3);
}};
var CoolPreviewsServiceModule={registerSelf:function(_4,_5,_6,_7){
_4=_4.QueryInterface(Components.interfaces.nsIComponentRegistrar);
_4.registerFactoryLocation(COOLPREVIEWS_CLASS_ID,COOLPREVIEWS_CLASS_NAME,COOLPREVIEWS_CONTRACT_ID,_5,_6,_7);
},unregisterSelf:function(_8,_9,_a){
_8=_8.QueryInterface(Components.interfaces.nsIComponentRegistrar);
_8.unregisterFactoryLocation(COOLPREVIEWS_CLASS_ID,_9);
},getClassObject:function(_b,_c,_d){
if(!_d.equals(Components.interfaces.nsIFactory)){
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
}
if(_c.equals(COOLPREVIEWS_CLASS_ID)){
return CoolPreviewsServiceFactory;
}
throw Components.results.NS_ERROR_NO_INTERFACE;
},canUnload:function(_e){
return true;
}};
function NSGetModule(_f,_10){
return CoolPreviewsServiceModule;
}